import request from '@/utils/request'

export default {
  getAlertCountByYear() {
    const url = 'console/api/v1/cockpit/getAlertCountByYear'
    return request.get(url)
  },

  getBasicInfo() {
    const url = 'console/api/v1/cockpit/collect-status-NumFirst'
    return request.get(url)
  },

  getEquipmentCollectAlert(data) {
    const url = 'alert/equipmentCollectAlert/list'
    return request.get(url,data)
  },
  getDeviceRecord() {
    const url = 'console/api/v1/cockpit/collect-status-NumFirstDevice'
    return request.get(url)
  },
  getQuantityDeviceData() {
    const url = 'console/api/v1/cockpit/collect-DeviceNum'
    return request.get(url)
  },
  getAlertFaultWOData() {
    const url = 'console/api/v1/cockpit/collect-DeviceAlertFaultWO'
    return request.get(url)
  },
  getAlertTrendData() {
    const url = 'console/api/v1/cockpit/collect-DeviceAlertTrend'
    return request.get(url)
  }
}
